package org.example.myclass;

import org.example.myclass.service.LoginService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MyClassApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MyClassApplication.class, args);
        LoginService loginService = context.getBean("loginSerivceiml2", LoginService.class);
        loginService.login();
    }


}

